import service from '@/utils/request'

export const useCustomerClueApi = (id: Number) => {
	return service.get('/sys/customerclue/' + id)
}

export const useCustomerClueSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/customerclue', dataForm)
	} else {
		return service.post('/sys/customerclue/save', dataForm)
	}
}
export const useCustomerClueFileApi = (dataForm: any) => {
	return service.post('/sys/customerclue/savefile', dataForm)
}
export const useCustomerClueListApi = (dataForm: any) => {
	return service.post('/sys/customerclue/list', dataForm)
}
